<!DOCTYPE html>
<html lang="zh-cn">
<head>
    
	<meta charset="utf-8">
    <title>会员中心-{:C("site_name")}</title>
    <meta name="Keywords" content="会员中心-{:C("site_name")}">
    <meta name="Description" content="会员中心-{:C("site_name")}">
    <meta http-equiv="Cache-Control" content="no-transform" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=yes" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <link href="/Public/user/{:C('default_user')}/layui/css/layui.css" rel="stylesheet">
	<script src="/Public/user/{:C('default_user')}/layui/layui.js" charset="utf-8"></script>
	<script src="/Public/user/{:C('default_user')}/js/jquery-3.4.1.min.js" charset="utf-8"></script>
    <link rel="stylesheet" href="/Public/user/{:C('default_user')}/css/comm.css" />
    <link rel="stylesheet" type="text/css" href="/Public/user/{:C('default_user')}/css/fwindow.css" />
   <link rel="stylesheet" type="text/css" href="/Public/user/{:C('default_user')}/css/newlist.css" />



</head>
<body class="yunlist2" >

    <div class='new-main'>
  <include file="./Public/user/qz/Tpl/user_header.html" />
        
            <article class="article2">
                     <include file="./Public/user/qz/Tpl/left.html" />

					
					
					
					
					
					
					
					
					
<div class="container" style="min-height: 510px;">
                     
    <nav class="nav2 boderBox">
        <div class="navContent navContentBorder boderBox noSelect">稿件管理</div>
    </nav>
    <div id="main2" class="boderBox">
        <div class="mainHead">
            <ul class="switch-ul">
                <li class="switch-li choosed-li boderBox noSelect" data-type="0">
                    全部<span class="switch-cli">全部</span>
                </li>
				
            </ul>

            <!-- <div class="search-ct">
                <input id="searchInput" class="search-input boderBox" type="text" placeholder="标题名称" maxlength="30">
                <span id="searchBtn" class="search-btn noSelect"></span>
            </div> -->
        </div>

        <div id="mainItem" class="item-ct"> </div>

   <div id="pageControl"><div id="audio_list"></div></div>
                </div>
            </article>
            
    <!-- 浮窗开始 -->
   
					
					
					
			
					
					
					
					
					
					
			  <include file="./Public/user/qz/Tpl/top.html" />		
					
					
					
					
					
					
					
					
					
            </article>
            
        
    </div>
  <include file="./Public/user/qz/Tpl/user_footer.html" />
<div class="footer_space"></div>
  
<script>
var page=1;
layui.use(['form', 'layedit', 'laypage'], function(){
  var $ = layui.jquery
  ,form = layui.form
  ,layer = layui.layer
	,laypage = layui.laypage;
    //自定义验证规则
  //自定义样式
  laypage.render({
  elem: 'audio_list'
  ,count: {$count} //数据总数，从服务端得到
  ,theme: '#17a1ff'
  ,jump: function(obj, first){
    //obj包含了当前分页的所有参数，比如：
    console.log(obj.curr); //得到当前页，以便向服务端请求对应页的数据。
	page=obj.curr;
    url(obj.curr);
    //首次不执行
    if(!first){
      //do something
    }
  }
});


 

  
});
     //刷新验证码
function url(page){
$.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/links_list')}" ,//url
                data:{
                    "page":page,
					"type":2,
                },
                success: function (result) {
                    if (result.code == 1) {
                    
					
					$("#mainItem").html(result.info)
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(result.url,2000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });

}

function del(id){

$.ajax({
            //几个参数需要注意一下
                type: "POST",//方法类型
                dataType: "json",//预期服务器返回的数据类型
                url: "{:UUU('User/center/links_list_del')}" ,//url
                data:{
                    "id":id,
					"type":1,
                },
                success: function (result) {
                  console.log(result);
                    if (result.code == 1) {
					$("#yy"+id).hide();
                    }else{
					layer.msg(result.msg,{'icon':1});
					
					setTimeout(result.url,3000);
					}
                   
                },
                error : function() {
                   layer.msg('登录异常请联系客服解决',{'icon':2});
                }
            });

}
</script>

</body>
</html>
